package com.ijunfu.spring.di._04_value.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @Title  : 
 * @Author : ijunfu <ijunfu@163.com>
 * @Date   : 2023/11/10 17:59
 * @Version: 1.0
 * @Motto  : 世界很大 世界很小
 *
 */
@Configuration
public class AppConfig {

    @Value("${author:ijunfu}")
    private String author;

    public void printAuthor() {
        System.out.println(4);
        System.out.println(author);
    }
}
